package OnTheBeachDB::ForumPost;
    
use base qw/DBIx::Class/;  
    
# Load required DBIC stuff
__PACKAGE__->load_components(qw/PK::Auto Core/);
# Set the table name
__PACKAGE__->table('forum_posts');
# Set columns in table
__PACKAGE__->add_columns(
    forum_id   => { data_type => 'INT', is_nullable => 0, },
    message_id => { data_type => 'INT', is_nullable => 0, },
);
# Set the primary key for the table
__PACKAGE__->set_primary_key(qw/forum_id message_id/);

## relationships
#__PACKAGE__->belongs_to( "forum" => "OnTheBeachDB::Forums" );
__PACKAGE__->belongs_to( message_id => "OnTheBeachDB::Message");

=head1 NAME
    
    OnTheBeachDB::Forums - A model object representing a forum.
    
=head1 DESCRIPTION
  
=cut
    
1;
